<template>
	<view class="content">
		<view class="list">
			<view class="item" v-for="(item,index) in dataList" :key="index">
				<view class="left">
					<image :src="item.avatar"></image>
					<view class="name">{{item.name}}</view>
				</view>
				<view class="right">
					<view class="money">{{item.money}}</view>
					<view class="time">{{item.time}}</view>
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				dataList: [
					{
						avatar: "http://sni1muz85.hd-bkt.clouddn.com/img/my/avatar.jpeg",
						name: "用户名",
						money: 999,
						time: "2222-12-12 12:00:00"
					},
					{
						avatar: "http://sni1muz85.hd-bkt.clouddn.com/img/my/avatar.jpeg",
						name: "用户名",
						money: 555,
						time: "2222-12-12 12:00:00"
					},
					{
						avatar: "http://sni1muz85.hd-bkt.clouddn.com/img/my/avatar.jpeg",
						name: "用户名",
						money: 111,
						time: "2222-12-12 12:00:00"
					},
				]
			}
		},
		methods: {
			
		}
	}
</script>

<style lang="less" scoped>
page {
	background-color: #fff;
}
.content {
	display: flex;
	flex-direction: column;
	align-items: center;
	.list {
		width: 92%;
		.item {
			display: flex;
			justify-content: space-between;
			align-items: center;
			margin-top: 20rpx;
			padding-bottom: 20rpx;
			border-bottom: 1rpx solid #DCDCDC;
			.left {
				display: flex;
				align-items: center;
				image {
					height: 80rpx;
					width: 80rpx;
					border-radius: 50%;
					background-color: #EEEEEE;
				}
				.name {
					width: 200rpx;
					font-size: 32rpx;
					font-weight: bold;
					margin-left: 20rpx;
					overflow: hidden;
					text-overflow: ellipsis;
					white-space: nowrap;
				}
			}
			.right {
				display: flex;
				align-items: center;
				.money {
					font-size: 38rpx;
					font-weight: bold;
					margin: 0 30rpx;
				}
				.time {
					font-size: 22rpx;
					color: #B1B1B3;
				}
			}
		}
	}
}
</style>
